package service;

import base.BaseTest;
import com.alibaba.fastjson.JSON;
import com.demo.mapper.CountryMapper;
import com.demo.model.Country;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import tk.mybatis.mapper.entity.Example;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * IntelliJ IDEA.
 * User: lwb
 * Date: 2017/10/20
 * Time: 11:24
 * function:
 */
public class TempService extends BaseTest {

    @Autowired
    CountryMapper countryMapper;

    @Test
    public  void test()
    {
        HashMap map = new HashMap();
        map.put("countryName" , "Be");
        map.put("countryCode" , "B");
        List<Map> list = countryMapper.finCountry(map);
        System.out.println(list.size());

    }


}
